package com.cocolove2.library_cocodialog.animations.Attention;

import android.animation.ObjectAnimator;
import android.view.View;

import com.cocolove2.library_cocodialog.animations.BaseAnimatorEffects;

public class RubberBand extends BaseAnimatorEffects {
    public RubberBand() {
        mDuration = 1000;
    }

    @Override
    public void setupAnimator(View view) {
        mAnimatorSet.playTogether(//
                ObjectAnimator.ofFloat(view, "scaleX", 1, 1.25f, 0.75f, 1.15f, 1),//
                ObjectAnimator.ofFloat(view, "scaleY", 1, 0.75f, 1.25f, 0.85f, 1));
    }
}
